<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<img id="img" src="img/company-2.png" />
		<canvas id="canvas" width="50" height="50"></canvas>
	</body>
	<script type="text/javascript">
			var img = document.getElementById("img");
		
		img.onload = function(){
			var context = document.getElementById("canvas").getContext("2d");
//			context.drawImage(img,10,10);
			context.drawImage(img,20,20,100,100,20,20,100,100);
		}
	</script>
</html>
